G_CALLBACK (gtk_widget_destroyed), &window);
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8);
+ g_object_set (vbox, "margin", 12, NULL);
gtk_container_add (GTK_CONTAINER (window), vbox);
/*
G_CALLBACK (gtk_widget_destroyed), &window);
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 2);
+ g_object_set (vbox, "margin", 10, NULL);
gtk_container_add (GTK_CONTAINER (window), vbox);
/* A combobox demonstrating cell renderers, separators and
gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, FALSE);
box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
+ g_object_set (box, "margin", 5, NULL);
gtk_container_add (GTK_CONTAINER (frame), box);
model = create_icon_store ();
gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, FALSE);
box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
+ g_object_set (box, "margin", 5, NULL);
gtk_container_add (GTK_CONTAINER (frame), box);
model = create_capital_store ();
gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, FALSE);
box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
+ g_object_set (box, "margin", 5, NULL);
gtk_container_add (GTK_CONTAINER (frame), box);
combo = gtk_combo_box_text_new_with_entry ();
gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, FALSE);
box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
+ g_object_set (box, "margin", 5, NULL);
gtk_container_add (GTK_CONTAINER (frame), box);
combo = gtk_combo_box_text_new ();
G_CALLBACK (gtk_widget_destroyed), &window);
frame = gtk_frame_new ("Dialogs");
+ g_object_set (frame, "margin", 8, NULL);
gtk_container_add (GTK_CONTAINER (window), frame);
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8);
+ g_object_set (vbox, "margin", 8, NULL);
gtk_container_add (GTK_CONTAINER (frame), vbox);
/* Standard message dialog */
G_CALLBACK (close_window), NULL);
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8);
+ g_object_set (vbox, "margin", 16, NULL);
gtk_container_add (GTK_CONTAINER (window), vbox);
/*
G_CALLBACK (gtk_widget_destroyed), &window);
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5);
+ g_object_set (vbox, "margin", 5, NULL);
gtk_container_add (GTK_CONTAINER (window), vbox);
gtk_box_pack_start (GTK_BOX (vbox),
G_CALLBACK (gtk_widget_destroyed), &window);
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5);
+ g_object_set (vbox, "margin", 5, NULL);
gtk_container_add (GTK_CONTAINER (window), vbox);
label = gtk_label_new (NULL);
G_CALLBACK (gtk_widget_destroyed), &window);
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5);
+ g_object_set (vbox, "margin", 5, NULL);
gtk_container_add (GTK_CONTAINER (window), vbox);
label = gtk_label_new (NULL);
<child>
<object class="GtkGrid" id="grid1">
<property name="visible">1</property>
- <property name="margin_left">10</property>
- <property name="margin_right">10</property>
- <property name="margin_top">10</property>
- <property name="margin_bottom">10</property>
+ <property name="margin">10</property>
<property name="row_spacing">10</property>
<property name="column_spacing">10</property>
<property name="column_homogeneous">1</property>
g_signal_connect (window, "destroy", G_CALLBACK (close_window), NULL);
box = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE);
+ g_object_set (box, "margin", 12, NULL);
gtk_box_set_spacing (GTK_BOX (box), 6);
gtk_container_add (GTK_CONTAINER (window), box);
G_CALLBACK (cleanup_callback), NULL);
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8);
+ g_object_set (vbox, "margin", 16, NULL);
gtk_container_add (GTK_CONTAINER (window), vbox);
label = gtk_label_new (NULL);
g_signal_connect (window, "destroy", G_CALLBACK (gtk_widget_destroyed), &window);
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
+ g_object_set (vbox, "margin", 8, NULL);
gtk_container_add (GTK_CONTAINER (window), vbox);
bar = gtk_info_bar_new ();
gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, FALSE);
vbox2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8);
+ g_object_set (vbox2, "margin", 8, NULL);
gtk_container_add (GTK_CONTAINER (frame), vbox2);
/* Standard message dialog */
G_CALLBACK (gtk_widget_destroyed), &window);
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8);
+ g_object_set (vbox, "margin", 8, NULL);
gtk_container_add (GTK_CONTAINER (window), vbox);
label = gtk_label_new ("This is the bug list (note: not based on real data, it would be nice to have a nice ODBC interface to bugzilla or so, though).");
child2 = gtk_paned_get_child2 (paned);
frame = gtk_frame_new (frame_label);
+ g_object_set (frame, "margin", 4, NULL);
table = gtk_grid_new ();
gtk_container_add (GTK_CONTAINER (frame), table);
gtk_container_add (GTK_CONTAINER (window), vbox);
vpaned = gtk_paned_new (GTK_ORIENTATION_VERTICAL);
+ g_object_set (vpaned, "margin", 5, NULL);
gtk_box_pack_start (GTK_BOX (vbox), vpaned, TRUE, TRUE);
hpaned = gtk_paned_new (GTK_ORIENTATION_HORIZONTAL);
G_CALLBACK (gtk_widget_destroyed), &window);
table = gtk_grid_new ();
+ g_object_set (table, "margin", 20, NULL);
gtk_grid_set_row_spacing (GTK_GRID (table), 3);
gtk_grid_set_column_spacing (GTK_GRID (table), 10);
gtk_container_add (GTK_CONTAINER (window), table);
popover = gtk_popover_new (parent);
gtk_popover_set_position (GTK_POPOVER (popover), pos);
gtk_container_add (GTK_CONTAINER (popover), child);
+ g_object_set (child, "margin", 6, NULL);
gtk_widget_show (child);
return popover;
{
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 24);
+ g_object_set (box, "margin", 24, NULL);
gtk_container_add (GTK_CONTAINER (window), box);
g_signal_connect (window, "destroy",
<property name="visible">1</property>
<property name="row-spacing">10</property>
<property name="column-spacing">10</property>
+ <property name="margin">20</property>
<child>
<object class="GtkLabel">
<property name="visible">1</property>
G_CALLBACK (search_entry_destroyed), &window);
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5);
+ g_object_set (vbox, "margin", 5, NULL);
gtk_container_add (GTK_CONTAINER (window), vbox);
label = gtk_label_new (NULL);
G_CALLBACK (gtk_widget_destroyed), &window);
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5);
+ g_object_set (vbox, "margin", 5, NULL);
gtk_container_add (GTK_CONTAINER (window), vbox);
size_group = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
gtk_box_pack_start (GTK_BOX (vbox), frame, TRUE, TRUE);
table = gtk_grid_new ();
+ g_object_set (table, "margin", 5, NULL);
gtk_grid_set_row_spacing (GTK_GRID (table), 5);
gtk_grid_set_column_spacing (GTK_GRID (table), 10);
gtk_container_add (GTK_CONTAINER (frame), table);
gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, FALSE);
table = gtk_grid_new ();
+ g_object_set (table, "margin", 5, NULL);
gtk_grid_set_row_spacing (GTK_GRID (table), 5);
gtk_grid_set_column_spacing (GTK_GRID (table), 10);
gtk_container_add (GTK_CONTAINER (frame), table);
content_area = gtk_dialog_get_content_area (GTK_DIALOG (window));
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5);
+ g_object_set (vbox, "margin", 5, NULL);
gtk_box_pack_start (GTK_BOX (content_area), vbox, TRUE, TRUE);
/* Sensitive */
</style>
<child>
<object class="GtkToggleToolButton">
- <property name="use_action_appearance">0</property>
<property name="visible">1</property>
- <property name="use_action_appearance">0</property>
<property name="label" translatable="yes">Normal</property>
<property name="use_underline">1</property>
<property name="is_important">1</property>
</child>
<child>
<object class="GtkToggleToolButton">
- <property name="use_action_appearance">0</property>
<property name="visible">1</property>
- <property name="use_action_appearance">0</property>
<property name="label" translatable="yes">Active</property>
<property name="use_underline">1</property>
<property name="is_important">1</property>
</child>
<child>
<object class="GtkToggleToolButton">
- <property name="use_action_appearance">0</property>
<property name="visible">1</property>
<property name="sensitive">0</property>
<property name="label" translatable="yes">Insensitive</property>
</child>
<child>
<object class="GtkToggleToolButton">
- <property name="use_action_appearance">0</property>
<property name="visible">1</property>
<property name="label" translatable="yes">Raised</property>
<property name="use_underline">1</property>
</child>
<child>
<object class="GtkToggleToolButton">
- <property name="use_action_appearance">0</property>
<property name="visible">1</property>
<property name="label" translatable="yes">Raised Active</property>
<property name="use_underline">1</property>
</child>
<child>
<object class="GtkToggleToolButton">
- <property name="use_action_appearance">0</property>
<property name="visible">1</property>
<property name="sensitive">0</property>
<property name="label" translatable="yes">Insensitive Active</property>
</child>
<child>
<object class="GtkToolItem">
- <property name="use_action_appearance">0</property>
<property name="visible">1</property>
<child>
<object class="GtkEntry" id="entry1">
</child>
<child>
<object class="GtkToolItem">
- <property name="use_action_appearance">0</property>
<property name="visible">1</property>
<child>
<object class="GtkSwitch" id="switch1">
<child>
<object class="GtkButton">
<property name="label" translatable="yes">Hi, I am a button</property>
- <property name="use_action_appearance">0</property>
<property name="visible">1</property>
<property name="can_focus">1</property>
<property name="receives_default">1</property>
- <property name="use_action_appearance">0</property>
</object>
</child>
<child>
<object class="GtkButton">
<property name="label" translatable="yes">And I'm another button</property>
- <property name="use_action_appearance">0</property>
<property name="visible">1</property>
<property name="can_focus">1</property>
<property name="receives_default">1</property>
- <property name="use_action_appearance">0</property>
</object>
<packing>
<property name="position">1</property>
<child>
<object class="GtkButton">
<property name="label" translatable="yes">This is a button party!</property>
- <property name="use_action_appearance">0</property>
<property name="visible">1</property>
<property name="can_focus">1</property>
<property name="receives_default">1</property>
- <property name="use_action_appearance">0</property>
</object>
<packing>
<property name="position">2</property>
</style>
<child>
<object class="GtkToggleToolButton">
- <property name="use_action_appearance">0</property>
<property name="visible">1</property>
- <property name="use_action_appearance">0</property>
<property name="label" translatable="yes">Normal</property>
<property name="use_underline">1</property>
<property name="icon_name">list-add-symbolic</property>
</child>
<child>
<object class="GtkToggleToolButton">
- <property name="use_action_appearance">0</property>
<property name="visible">1</property>
- <property name="use_action_appearance">0</property>
<property name="label" translatable="yes">Normal</property>
<property name="use_underline">1</property>
<property name="icon_name">list-add-symbolic</property>
</child>
<child>
<object class="GtkToggleToolButton">
- <property name="use_action_appearance">0</property>
- <property name="visible">1</property>
- <property name="use_action_appearance">0</property>
<property name="label" translatable="yes">Active</property>
<property name="use_underline">1</property>
<property name="icon_name">list-remove-symbolic</property>
</child>
<child>
<object class="GtkToggleToolButton">
- <property name="use_action_appearance">0</property>
<property name="visible">1</property>
- <property name="use_action_appearance">0</property>
<property name="label" translatable="yes">Active</property>
<property name="use_underline">1</property>
<property name="icon_name">list-remove-symbolic</property>
</child>
<child>
<object class="GtkToggleToolButton">
- <property name="use_action_appearance">0</property>
<property name="visible">1</property>
<property name="sensitive">0</property>
- <property name="use_action_appearance">0</property>
<property name="label" translatable="yes">Insensitive</property>
<property name="use_underline">1</property>
<property name="icon_name">edit-find-symbolic</property>
</child>
<child>
<object class="GtkToggleToolButton">
- <property name="use_action_appearance">0</property>
<property name="visible">1</property>
<property name="sensitive">0</property>
- <property name="use_action_appearance">0</property>
<property name="label" translatable="yes">Insensitive Active</property>
<property name="use_underline">1</property>
<property name="icon_name">go-up-symbolic</property>
/* Add widgets to control the ToolPalette appearance: */
box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
+ g_object_set (box, "margin", 6, NULL);
gtk_container_add (GTK_CONTAINER (window), box);
/* Orientation combo box: */
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (palette_scroller),
GTK_POLICY_NEVER,
GTK_POLICY_AUTOMATIC);
+ g_object_set (palette_scroller, "margin", 6, NULL);
gtk_widget_set_hexpand (palette_scroller, TRUE);
gtk_container_add (GTK_CONTAINER (palette_scroller), palette);
/* ===== notebook ===== */
notebook = gtk_notebook_new ();
+ g_object_set (notebook, "margin", 6, NULL);
gtk_box_pack_end (GTK_BOX(hbox), notebook, FALSE, FALSE);
/* ===== DnD for tool items ===== */
gtk_notebook_append_page (GTK_NOTEBOOK (notebook),
contents_scroller,
gtk_label_new ("Passive DnD Mode"));
+ g_object_set (contents_scroller, "margin", 6, NULL);
/* ===== interactive DnD dest ===== */
G_CALLBACK (gtk_widget_destroyed), &window);
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8);
+ g_object_set (vbox, "margin", 8, NULL);
gtk_container_add (GTK_CONTAINER (window), vbox);
gtk_box_pack_start (GTK_BOX (vbox),